package com.syp.auth.export.common;

/**
 * 开放注册参数
 * 
 * @author syp
 *
 */
public enum SigninParamEnum {

	RETURN_URL("returnUrl", "登录后返回的地址"), SESSION_ID("sid", "会话ID"), APP("app", "参与会话的系统");

	/**
	 * 参数名称
	 */
	private String param;
	/**
	 * 参数描述
	 */
	private String desc;

	private SigninParamEnum(String param, String desc) {
		this.param = param;
		this.desc = desc;
	}

	public String getParam() {
		return param;
	}

	public String getDesc() {
		return desc;
	}

	public static final String[] paramNames() {
		SigninParamEnum[] sps = SigninParamEnum.values();
		String[] pns = new String[sps.length];
		for (int i = 0; i < sps.length; i++) {
			pns[i] = sps[i].getParam();
		}
		return pns;
	}

}
